<template>
  <div id="cart">
    <!--head-->
    <!-- 头部栏位 -->
    <!--页面顶部-->
    <div id="nav-bottom">
      <!--顶部-->
      <div class="nav-top">
        <div class="top">
          <div class="py-container">
            <div class="shortcut">
              <ul class="fl">
                <li class="f-item">畅购欢迎您！</li>
                <li class="f-item">
                  请
                  <a href="login.html" target="_blank">登录</a>
                  <span>
                    <a href="register.html" target="_blank">免费注册</a>
                  </span>
                </li>
              </ul>
              <div class="fr typelist">
                <ul class="types">
                  <li class="f-item">
                    <span>我的订单</span>
                  </li>

                  <li class="f-item">
                    <span>
                      <a href="cart.html" target="_blank">我的购物车</a>
                    </span>
                  </li>
                  <li class="f-item">
                    <span>
                      <a href="home.html" target="_blank">我的畅购</a>
                    </span>
                  </li>
                  <li class="f-item">
                    <span>畅购会员</span>
                  </li>
                  <li class="f-item">
                    <span>企业采购</span>
                  </li>
                  <li class="f-item">
                    <span>关注畅购</span>
                  </li>
                  <li class="f-item">
                    <span>
                      <a href="cooperation.html" target="_blank">合作招商</a>
                    </span>
                  </li>
                  <li class="f-item">
                    <span>
                      <a href="shoplogin.html" target="_blank">商家后台</a>
                    </span>
                  </li>
                  <li class="f-item">
                    <span>网站导航</span>
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </div>

        <!--头部-->
        <div class="header">
          <div class="py-container">
            <div class="yui3-g Logo">
              <div class="yui3-u Left logoArea">
                <a class="logo-bd" title="畅购" href="index.html" target="_blank"></a>
              </div>
              <div class="yui3-u Rit searchArea">
                <div class="search">
                  <form action="" class="sui-form form-inline">
                    <!--searchAutoComplete-->
                    <div class="input-append">
                      <input id="autocomplete" type="text" class="input-error input-xxlarge" />
                      <button class="sui-btn btn-xlarge btn-danger" type="button">搜索</button>
                    </div>
                  </form>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="cart py-container">
      <!--All goods-->
      <div class="allgoods">
        <h4>
          全部商品
          <span></span>
        </h4>
        <div class="cart-main">
          <div class="yui3-g cart-th">
            <div class="yui3-u-1-4"><input class="chooseAll" type="checkbox" name="" id="" value="" /> 全部</div>
            <div class="yui3-u-1-4">商品</div>
            <div class="yui3-u-1-8">单价（元）</div>
            <div class="yui3-u-1-8">数量</div>
            <div class="yui3-u-1-8">小计（元）</div>
            <div class="yui3-u-1-8">操作</div>
          </div>
          <div class="cart-item-list" id="app">
            <div class="cart-body">
              <!-- vue loadlist -->
              <div class="cart-list" v-for="item in shopcarlist" :key="item.index">
                <ul class="goods-list yui3-g">
                  <li class="yui3-u-1-24">
                    <input type="checkbox" name="chk_list" id="" value="" />
                  </li>
                  <li class="yui3-u-6-24">
                    <div class="good-item">
                      <div class="item-img">
                        <img src="img/goods.png" />
                      </div>
                      <div class="item-msg">{{ item.intro }}</div>
                    </div>
                  </li>
                  <li class="yui3-u-5-24">
                    <div class="item-txt">{{ item.property }}</div>
                  </li>
                  <li class="yui3-u-1-8">
                    <span class="price">{{ item.price }}</span>
                  </li>
                  <li class="yui3-u-1-8">
                    <a href="javascript:void(0)" class="increment mins">-</a>
                    <input autocomplete="off" type="text" value="1" minnum="1" class="itxt" />
                    <a href="javascript:void(0)" class="increment plus">+</a>
                  </li>
                  <li class="yui3-u-1-8">
                    <span class="sum">8848.00</span>
                  </li>
                  <li class="yui3-u-1-8">
                    <a href="#none">删除</a>
                    <br />
                    <a href="#none">移到收藏</a>
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </div>
        <div class="cart-tool">
          <div class="select-all">
            <input class="chooseAll" type="checkbox" name="" id="" value="" />
            <span>全选</span>
          </div>
          <div class="option">
            <a href="#none">删除选中的商品</a>
            <a href="#none">移到我的关注</a>
            <a href="#none">清除下柜商品</a>
          </div>
          <div class="money-box">
            <div class="chosed">已选择 <span>0</span>件商品</div>
            <div class="sumprice">
              <span>
                <em>总价（不含运费） ：</em>
                <i class="summoney">¥16283.00</i>
              </span>
              <span>
                <em>已节省：</em>
                <i>-¥20.00</i>
              </span>
            </div>
            <div class="sumbtn">
              <a class="sum-btn" href="order.html" target="_blank">结算</a>
            </div>
          </div>
        </div>
        <div class="clearfix"></div>
        <div class="liked">
          <ul class="sui-nav nav-tabs">
            <li class="active">
              <a href="#index" data-toggle="tab">猜你喜欢</a>
            </li>
            <li>
              <a href="#profile" data-toggle="tab">特惠换购</a>
            </li>
          </ul>
          <div class="clearfix"></div>
          <div class="tab-content">
            <div id="index" class="tab-pane active">
              <div id="myCarousel" data-ride="carousel" data-interval="4000" class="sui-carousel slide">
                <div class="carousel-inner">
                  <div class="active item">
                    <ul>
                      <li>
                        <img src="img/like1.png" />
                        <div class="intro">
                          <i>Apple苹果iPhone 6s (A1699)</i>
                        </div>
                        <div class="money">
                          <span>$29.00</span>
                        </div>
                        <div class="incar">
                          <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default">
                            <i class="car"></i>
                            <span class="cartxt">加入购物车</span>
                          </a>
                        </div>
                      </li>
                      <li>
                        <img src="img/like2.png" />
                        <div class="intro">
                          <i>Apple苹果iPhone 6s (A1699)</i>
                        </div>
                        <div class="money">
                          <span>$29.00</span>
                        </div>
                        <div class="incar">
                          <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default">
                            <i class="car"></i>
                            <span class="cartxt">加入购物车</span>
                          </a>
                        </div>
                      </li>
                      <li>
                        <img src="img/like3.png" />
                        <div class="intro">
                          <i>Apple苹果iPhone 6s (A1699)</i>
                        </div>
                        <div class="money">
                          <span>$29.00</span>
                        </div>
                        <div class="incar">
                          <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default">
                            <i class="car"></i>
                            <span class="cartxt">加入购物车</span>
                          </a>
                        </div>
                      </li>
                      <li>
                        <img src="img/like4.png" />
                        <div class="intro">
                          <i>Apple苹果iPhone 6s (A1699)</i>
                        </div>
                        <div class="money">
                          <span>$29.00</span>
                        </div>
                        <div class="incar">
                          <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default">
                            <i class="car"></i>
                            <span class="cartxt">加入购物车</span>
                          </a>
                        </div>
                      </li>
                    </ul>
                  </div>
                  <div class="item">
                    <ul>
                      <li>
                        <img src="img/like1.png" />
                        <div class="intro">
                          <i>Apple苹果iPhone 6s (A1699)</i>
                        </div>
                        <div class="money">
                          <span>$29.00</span>
                        </div>
                        <div class="incar">
                          <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default">
                            <i class="car"></i>
                            <span class="cartxt">加入购物车</span>
                          </a>
                        </div>
                      </li>
                      <li>
                        <img src="img/like2.png" />
                        <div class="intro">
                          <i>Apple苹果iPhone 6s (A1699)</i>
                        </div>
                        <div class="money">
                          <span>$29.00</span>
                        </div>
                        <div class="incar">
                          <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default">
                            <i class="car"></i>
                            <span class="cartxt">加入购物车</span>
                          </a>
                        </div>
                      </li>
                      <li>
                        <img src="img/like3.png" />
                        <div class="intro">
                          <i>Apple苹果iPhone 6s (A1699)</i>
                        </div>
                        <div class="money">
                          <span>$29.00</span>
                        </div>
                        <div class="incar">
                          <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default">
                            <i class="car"></i>
                            <span class="cartxt">加入购物车</span>
                          </a>
                        </div>
                      </li>
                      <li>
                        <img src="img/like4.png" />
                        <div class="intro">
                          <i>Apple苹果iPhone 6s (A1699)</i>
                        </div>
                        <div class="money">
                          <span>$29.00</span>
                        </div>
                        <div class="incar">
                          <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default">
                            <i class="car"></i>
                            <span class="cartxt">加入购物车</span>
                          </a>
                        </div>
                      </li>
                    </ul>
                  </div>
                </div>
                <a href="#myCarousel" data-slide="prev" class="carousel-control left">‹</a>
                <a href="#myCarousel" data-slide="next" class="carousel-control right">›</a>
              </div>
            </div>
            <div id="profile" class="tab-pane">
              <p>特惠选购</p>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 底部栏位 -->
    <!--页面底部-->
    <div class="clearfix footer">
      <div class="py-container">
        <div class="footlink">
          <div class="Mod-service">
            <ul class="Mod-Service-list">
              <li class="grid-service-item intro  intro1">
                <i class="serivce-item fl"></i>
                <div class="service-text">
                  <h4>正品保障</h4>
                  <p>正品保障，提供发票</p>
                </div>
              </li>
              <li class="grid-service-item  intro intro2">
                <i class="serivce-item fl"></i>
                <div class="service-text">
                  <h4>正品保障</h4>
                  <p>正品保障，提供发票</p>
                </div>
              </li>
              <li class="grid-service-item intro  intro3">
                <i class="serivce-item fl"></i>
                <div class="service-text">
                  <h4>正品保障</h4>
                  <p>正品保障，提供发票</p>
                </div>
              </li>
              <li class="grid-service-item  intro intro4">
                <i class="serivce-item fl"></i>
                <div class="service-text">
                  <h4>正品保障</h4>
                  <p>正品保障，提供发票</p>
                </div>
              </li>
              <li class="grid-service-item intro intro5">
                <i class="serivce-item fl"></i>
                <div class="service-text">
                  <h4>正品保障</h4>
                  <p>正品保障，提供发票</p>
                </div>
              </li>
            </ul>
          </div>
          <div class="clearfix Mod-list">
            <div class="yui3-g">
              <div class="yui3-u-1-6">
                <h4>购物指南</h4>
                <ul class="unstyled">
                  <li>购物流程</li>
                  <li>会员介绍</li>
                  <li>生活旅行/团购</li>
                  <li>常见问题</li>
                  <li>购物指南</li>
                </ul>
              </div>
              <div class="yui3-u-1-6">
                <h4>配送方式</h4>
                <ul class="unstyled">
                  <li>上门自提</li>
                  <li>211限时达</li>
                  <li>配送服务查询</li>
                  <li>配送费收取标准</li>
                  <li>海外配送</li>
                </ul>
              </div>
              <div class="yui3-u-1-6">
                <h4>支付方式</h4>
                <ul class="unstyled">
                  <li>货到付款</li>
                  <li>在线支付</li>
                  <li>分期付款</li>
                  <li>邮局汇款</li>
                  <li>公司转账</li>
                </ul>
              </div>
              <div class="yui3-u-1-6">
                <h4>售后服务</h4>
                <ul class="unstyled">
                  <li>售后政策</li>
                  <li>价格保护</li>
                  <li>退款说明</li>
                  <li>返修/退换货</li>
                  <li>取消订单</li>
                </ul>
              </div>
              <div class="yui3-u-1-6">
                <h4>特色服务</h4>
                <ul class="unstyled">
                  <li>夺宝岛</li>
                  <li>DIY装机</li>
                  <li>延保服务</li>
                  <li>品优购E卡</li>
                  <li>品优购通信</li>
                </ul>
              </div>
              <div class="yui3-u-1-6">
                <h4>帮助中心</h4>
                <img src="img/wx_cz.jpg" />
              </div>
            </div>
          </div>
          <div class="Mod-copyright">
            <ul class="helpLink">
              <li>
                关于我们
                <span class="space"></span>
              </li>
              <li>
                联系我们
                <span class="space"></span>
              </li>
              <li>
                关于我们
                <span class="space"></span>
              </li>
              <li>
                商家入驻
                <span class="space"></span>
              </li>
              <li>
                营销中心
                <span class="space"></span>
              </li>
              <li>
                友情链接
                <span class="space"></span>
              </li>
              <li>
                关于我们
                <span class="space"></span>
              </li>
              <li>
                营销中心
                <span class="space"></span>
              </li>
              <li>
                友情链接
                <span class="space"></span>
              </li>
              <li>关于我们</li>
            </ul>
            <p>地址：北京市昌平区建材城西路金燕龙办公楼一层 邮编：100096 电话：400-618-4000 传真：010-82935100</p>
            <p>京ICP备08001421号京公网安备110108007702</p>
          </div>
        </div>
      </div>
    </div>
    <!--页面底部END-->
  </div>
</template>

<script type="text/javascript" src="../../public/js/plugins/jquery/jquery.min.js"></script>

<script type="text/javascript">
$('.chooseAll').click(function() {
  $("input[name='chk_list']").prop('checked', $(this).prop('checked'))
})
</script>

<script>
export default {
  data() {
    return {
      shopcarlist: [
        {
          intro: '米家（MIJIA） 小米小白智能摄像机增强版 1080p高清360度全景拍摄AI增强',
          property: '语音升级款',
          price: '399.00'
        },
        {
          intro: '米家（MIJIA） 小米小白智能摄像机增强版 1080p高清360度全景拍摄AI增强',
          property: '语音升级款',
          price: '399.00'
        },
        {
          intro: '米家（MIJIA） 小米小白智能摄像机增强版 1080p高清360度全景拍摄AI增强',
          property: '语音升级款',
          price: '399.00'
        }
      ]
    }
  },
  methods: {},
  created() {}
}
</script>

<style lang="less">
#cart {
  .top {
    background-color: #f1f1f1;
  }

  a {
    color: #666;
    text-decoration: none;
  }

  .sumbtn a:hover {
    color: #fff;
  }

  .logoArea {
    overflow: hidden;
    position: relative;
  }

  .logo {
    background: url(../../public/img/icons.png) no-repeat;
    background-position: -370px 3px;
    width: 177px;
    height: 75px;
  }

  .logo .title {
    font: 19px '微软雅黑';
    position: absolute;
    top: 24px;
    left: 190px;
  }

  .search {
    position: absolute;
    right: 0;
    top: 22px;
    font-size: 16px;
  }

  .search .btn-danger {
    font-size: 16px;
  }

  .cart-th {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px;
  }

  .cart-shop {
    border-bottom: 2px solid #ddd;
    padding: 10px 9px 5px;
  }

  .cart-tool {
    overflow: hidden;
    border: 1px solid #ddd;
  }

  .cart-shop .self {
    color: #fff;
    background: #ff4301;
    padding: 2px;
  }

  .cart-body,
  .deled {
    margin: 15px 0;
  }

  .cart-body {
    border: 1px solid #ddd;
  }

  .cart-list ul {
    padding: 10px;
    border-bottom: 1px solid #ddd;
  }

  .cart-list ul li {
    display: inline-block;
    *display: inline;
    *zoom: 1;
  }

  .price,
  .sum,
  .shopname,
  .itxt {
    font-family: '微软雅黑';
  }

  .shopname {
    font-size: 14px;
  }

  .self {
    font-size: 12px;
  }

  .price,
  .sum {
    font-size: 16px;
  }

  .good-item {
    width: 260px;
  }

  .item-img {
    float: left;
    width: 100px;
    height: 90px;
  }

  .item-txt {
    width: 200px;
  }

  .goods-list input {
    border: 1px solid #ddd;
  }

  a.increment {
    text-decoration: none;
    width: 6px;
    text-align: center;
    padding: 8px;
    -moz-padding-top: 10px;
    -moz-padding-bottom: 13px;
    -webkit-padding-top: 10px;
    -webkit-padding-bottom: 13px;
  }

  .mins {
    border: 1px solid #ddd;
    border-right: 0;
    float: left;
  }

  .plus {
    border: 1px solid #ddd;
    border-left: 0;
    float: left;
  }

  .itxt {
    width: 40px;
    height: 32px;
    float: left;
    text-align: center;
    font-size: 14px;
    zoom: 1;
  }

  .select-all,
  .option {
    padding: 10px;
    overflow: hidden;
    float: left;
  }

  .option a {
    float: left;
    padding: 0 10px;
  }

  .money-box {
    float: right;
  }

  .chosed,
  .sumprice {
    float: left;
    padding: 0 10px;
  }

  .chosed {
    line-height: 26px;
  }

  .sumprice {
    width: 200px;
    line-height: 22px;
  }

  .sumprice em {
    text-align: right;
  }

  .sumbtn {
    float: right;
  }

  .summoney {
    color: #c81623;
    font: 16px '微软雅黑';
  }

  a.sum-btn {
    display: block;
    position: relative;
    width: 96px;
    height: 52px;
    line-height: 52px;
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-family: 'Microsoft YaHei';
    background: #ff4301;
    overflow: hidden;
  }

  .del {
    background: #fffdee;
  }

  .del .goods-list {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 15px;
  }

  .sui-nav.nav-tabs {
    background: #f1f1f1;
    padding-left: 0;
    border: 1px solid #ddd;
    overflow: hidden;
  }

  .sui-nav.nav-tabs > li > a {
    border: 0;
    padding: 10px 20px;
    font-family: '微软雅黑';
  }

  .sui-nav.nav-tabs > .active > a {
    background-color: #ff4301;
    color: #fff;
    border-radius: 0;
    border: 0;
  }

  .item ul {
    width: 1000px;
    margin: 0 auto;
  }

  .item ul li {
    list-style-type: none;
    display: inline-block;
    margin-right: -7px;
    border: 1px dashed #ddd;
    padding: 20px;
    *display: inline;
    *zoom: 1;
    position: relative;
    zoom: 1;
  }

  .carousel-control {
    border-radius: 0;
    width: 22px;
    border: 0;
    background: #ddd;
  }

  .intro,
  .money,
  .incar {
    line-height: 20px;
  }

  .money,
  .incar {
    text-align: center;
  }

  .money {
    font: 14px '微软雅黑';
    color: #c81623;
  }

  .incar {
    margin: 10px 0;
  }

  .car {
    width: 20px;
    height: 20px;
    position: absolute;
    background: url(../../public/img/icons.png) no-repeat;
    background-position: -422px -135px;
  }

  .cartxt {
    padding-left: 23px;
  }
}
</style>
